
$('#qued').click(function () {

    //表单序列化
    var search= $('.form-horizontal').serialize();
    var title=$('#title').val();
    var content=$('#content').val();
    var type=$('#type').val();
        $.ajax({
            'type':'POST',
            'url':'/content/addindex',
            'dataType':'json',
            'async': false,
            'data':search,
            success: function () {
            //    alert("Data Saved:111 " );
                location.href="/content/content"

            },
            error: function () {
                alert("添加失败，请重新添加 ");
            },
        });
})
